|
|
|
|
|
|
|
Caution By default, the template is added as a child form. Unless you're creating an MDI interface, you need to change the MDIChild property to False before doing anything else. |
|
|
|
|
|
|
|
|
|
Open the form in design mode by double-clicking it. You should see the form shown in Figure 14.4. |
|
|
|
|
|
|
|
|
Figure 14.4.
The new browser form added to the application contains many
different controls. |
|
|
|
|
|
|
|
|
Because the template sets up everything for you, the only other step you need to do is to check the main form's View menu to ensure that a Web browser option is there and has the code to display the correct form. To see how this works, run the application. |
|
|
|
|
|
|
|
|
Caution Some routines included in the template are no longer defined correctly for the current version of the browser control. For example, the template has a routine defined as follows: |
|
|
|
| |
|
|
|
|
Private Sub brwWebBrowser_NavigateComplete(ByVal URL As String) |
|
|
|
| | Whereas the correct definition would be like so: | |
|
|
|
|
Private Sub brwWebBrowser_NavigateComplete2(ByVal pDisp As Object, _
URL As Variant) |
|
|
|
|
|
|